<template>
  <div class="timetable-wrap">
    <div class="crumbs">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>
          <i class="el-icon-fa fa-table"></i> 教师课表
        </el-breadcrumb-item>
      </el-breadcrumb>
    </div>

    <div class="container">
      <time-table-t ref="timeTable"></time-table-t>
    </div>
  </div>
</template>

<script>
import * as api from "../../api/teacher/timetable";
import TimeTableT from "../../components/TimeTableT";

export default {
  name: "TeacherTimetable",
  components: { TimeTableT },
  created() {
    api.get().then(res => {
      this.$refs.timeTable.updateData(res);
    });
  }
};
</script>

<style scoped></style>
